<?

if(isset($_GET['nieuw'])){
	$myFile = "Nieuwe gebruiker.html";
	$fh = fopen($myFile, 'r');
	$theData = fread($fh, filesize($myFile));
	fclose($fh);

	$theData= str_replace("%date%", date('d m Y'), $theData);
	$theData= str_replace("%name%", "Laurens", $theData);
	$theData= str_replace("%adminname%", "Wilbert Koelewijn", $theData);
	$theData= str_replace("%username%", "LauLaman", $theData);
	$theData= str_replace("%password%", "jkhska87asdhjkKJH", $theData);
	echo $theData;
}elseif(isset($_GET['wachtwoord'])){
	$myFile = "Nieuw wachtwoord.html";
	$fh = fopen($myFile, 'r');
	$theData = fread($fh, filesize($myFile));
	fclose($fh);

	$theData= str_replace("%date%", date('d m Y'), $theData);
	$theData= str_replace("%name%", "Laurens", $theData);
	$theData= str_replace("%code%", "fR1wayXU", $theData);
	$theData= str_replace("%password%", "Z5b20Ze0e6iBAZDxxjH5", $theData);
	$theData= str_replace("%hash1%", "822ff3241b7f058fd234266f989155c0ebc64be5", $theData);
	$theData= str_replace("%hash2%", "efa76b9e2e46b9bc9309baf7ce1ff7bd09032592", $theData);
	echo $theData;
}
?>